<?php
namespace App\Models\Inquiry;

use Illuminate\Database\Eloquent\Model;

class InquirySheet extends Model
{
    protected $primaryKey = 'id';

    protected $table = 'lsj_inquiry_sheet';

    protected $fillable = ['uid','user_nickname','goods_num','no','notes',
        'status','goods_id','goods_name','goods_spec','goods_thumb',
        'number','quote_uid','quote_nickname','quote_price'];

    public function quotation()
    {
        return $this->hasOne('App\Models\Quote\Quotation','inquiry_sheet_id');
    }
}